package day03;

public class IfElseIfDemo {
    public static void main(String[] args) {
        //满2000打五折，满1000打6折，满800打七折，其余不足800，一律打8折
        double price=900.0;
        if(price>=2000){
            price*=0.5;
        }else if(price>=1000){
            price*=0.6;
        }else if (price>=800){
            price*=0.7;
        }else{
            price*=0.8;
        }
        System.out.println("最终交易金额为："+price);
    }
}
